import {
	axios
} from './request.js'

// 分页查询所有图书馆列表
export const libraryList = ({
	header,
	data
}) => {
	return axios({
		url: "/prod-api/api/digital-library/library/list",
		header,
		data
	})
}

// 获取图书馆详情
export const digitalList = ({
	header,
	id,
	data
}) => {
	return axios({
		url: `/prod-api/api/digital-library/library/${id}`,
		header: {
			"Authorization": uni.getStorageSync('token')
		},
		data
	})
}

// 获取某个图书馆的所有评论列表
export const commentList = (libraryId) => {
	return axios({
		url: '/prod-api/api/digital-library/library-comment/list?libraryId=1&pageNum=1&pageSize=10',
		header: {
			"Authorization": uni.getStorageSync('token')
		}
	})
}